Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI/CD using Github Actions for linting and building the Django app #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Oct 1, 2023

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement

Description

This PR adds a CI/CD pipeline using Github Actions for linting (using flake8) and building the Django app. It also implements a pre-commit approach at the linting phase. Additionally, it includes a CD pipeline to deliver the app to DockerHub.

Summary of Changes

  • Added a Github Actions workflow file (.github/workflows/ci_cd.yml) to define the CI/CD pipeline.
  • Installed flake8 and added linting steps in the workflow to check the code for linting errors.
  • Added steps in the workflow to build the Django app.
  • Added steps in the workflow to push the built app to DockerHub for deployment.
  • Created a .flake8 file to configure flake8 for linting.
  • Created a .pre-commit-config.yaml file to configure pre-commit for linting.
  • Modified requirements.txt to include flake8 as a requirement.

Fixes #6.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

  • Leave a comment below to get Sweep to edit the entire PR
  • Leave a comment in the code will only modify the file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: make a CI\CD using Github Actions for linting (using flake8) and building the Django app
0 participants